home *** CD-ROM | disk | FTP | other *** search
/ Aminet 50 / Aminet 50 (2002)(GTI - Schatztruhe)[!][Aug 2002].iso / STFax / STFax / Rexx / ReceiveFax.stfax < prev    next >
Text File  |  1997-12-20  |  580b  |  31 lines

  1. /*
  2.     Receive a fax. This script can be used by programs like TrapDoor
  3.     which can spawn external programs when an incoming fax call is
  4.     detected.
  5.  
  6.     To use this script, you should start STFax and set it to open the
  7.     serial device (the same used by the other program) in shared mode.
  8.  
  9.     You shuld also turn off the Auto Answer of STFax.
  10. */
  11.  
  12. Options Results
  13.  
  14. Parse Arg Device Unit Baud
  15.  
  16. Address "STFAX.1"
  17.  
  18. 'DEVICE "'Device'"' Unit 'BAUD' Baud
  19.  
  20. /*
  21.     FaxClasses:
  22.  
  23.     0       Class 1
  24.     1       Class 2
  25.     2       Class 2.0
  26. */
  27.  
  28. 'RECEIVE FAXCLASS 1 NOANSWER'
  29.  
  30. Exit 0
  31.